package com.effective.java.inheritence;

import java.util.Date;

public class SubClass extends CallsOverrideableMethodInConstructor {

	private Date date;

	public SubClass() {

		this.date = new Date();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected void overrideMe() {

		// Since this method is called by the constructor of the super class the
		// property has not been initialized at this point!
		System.out.println(date);
		super.overrideMe();
	}

}
